<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Inicio de Sesión</title>
<link rel="shortcut icon" href="/resources/img/favicon.ico" />
<jsp:include page="/resources/includeCSSjs.jsp" />
<script type="text/javascript">
	$(document).ready(function() {
		$("#loginForm").validate();
	});
</script>
</head>
<body>

	<div id="divPrincipal">

		<div class="divLoginContent">
			<div class="loginHead"></div>
			<div class="contentLogin">
				<div class="loginForm">
					<div class="loginFormControl">
						<div class="loginCandado"></div>
						<br>
						<br>
						<br>
						<form name='f' action="<c:url value='j_spring_security_check' />"
							method='POST'>
							<c:if test="${not empty error}">
								<div class="errorblock">
									No se pudo iniciar sesion, Intente de nuevo.<br /> Causa
									: ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
								</div>
							</c:if>

							<table width="300" border="0">
								<tr>
									<td width="110"><label class="text0">Usuario</label></td>
									<td width="190"><input type="text" name="j_username"
										id="j_username" class="required inputText0" /></td>
								</tr>
								<tr>
									<td width="110"><label class="text0">Contraseña</label></td>
									<td width="190"><input type="password" name="j_password"
										id="j_password" class="required inputText0" /></td>
								</tr>
							</table>
							<div class="login_btnIngresar">
								<input type="image" src="resources/img/Login_btnIngresar.png" onsubmit="submit-form();">
							</div>
						</form>
					</div>

				</div>
			</div>
			<div class="loginFoot"></div>

		</div>

	</div>
</body>
</html>
